local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1, L13_1, L14_1, L15_1, L16_1, L17_1, L18_1, L19_1, L20_1, L21_1, L22_1, L23_1, L24_1, L25_1, L26_1, L27_1, L28_1, L29_1, L30_1, L31_1, L32_1, L33_1, L34_1
L0_1 = {}
L0_1.group_id = 220000069
L1_1 = {}
monsters = L1_1
L1_1 = {}
npcs = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 484
L2_1.gadget_id = 70900039
L3_1 = {}
L3_1.x = -49.796
L3_1.y = 0.722
L3_1.z = 640.335
L2_1.pos = L3_1
L3_1 = {}
L3_1.x = 0.0
L3_1.y = 0.0
L3_1.z = 0.0
L2_1.rot = L3_1
L2_1.level = 1
L3_1 = {}
L3_1.config_id = 485
L3_1.gadget_id = 70690006
L4_1 = {}
L4_1.x = -49.796
L4_1.y = 0.5
L4_1.z = 640.335
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 202.087
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L4_1 = {}
L4_1.config_id = 486
L4_1.gadget_id = 70690001
L5_1 = {}
L5_1.x = -49.796
L5_1.y = 5.0
L5_1.z = 640.335
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 90.0
L5_1.y = 248.382
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 1
L5_1 = {}
L5_1.config_id = 487
L5_1.gadget_id = 70690001
L6_1 = {}
L6_1.x = -49.796
L6_1.y = 20.0
L6_1.z = 640.335
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 90.0
L6_1.y = 270.335
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 1
L6_1 = {}
L6_1.config_id = 488
L6_1.gadget_id = 70690001
L7_1 = {}
L7_1.x = -49.796
L7_1.y = 35.0
L7_1.z = 640.335
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 90.0
L7_1.y = 252.856
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 1
L7_1 = {}
L7_1.config_id = 489
L7_1.gadget_id = 70690001
L8_1 = {}
L8_1.x = -49.796
L8_1.y = 50.0
L8_1.z = 640.335
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 90.0
L8_1.y = 103.025
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 1
L8_1 = {}
L8_1.config_id = 490
L8_1.gadget_id = 70690001
L9_1 = {}
L9_1.x = -49.796
L9_1.y = 65.0
L9_1.z = 640.335
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 90.0
L9_1.y = 57.9
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 1
L9_1 = {}
L9_1.config_id = 491
L9_1.gadget_id = 70500000
L10_1 = {}
L10_1.x = -49.796
L10_1.y = 80.0
L10_1.z = 675.335
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 156.421
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 1
L9_1.point_type = 4001001
L10_1 = {}
L10_1.config_id = 492
L10_1.gadget_id = 70500000
L11_1 = {}
L11_1.x = -49.796
L11_1.y = 65.0
L11_1.z = 675.335
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 229.552
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 1
L10_1.point_type = 4001001
L11_1 = {}
L11_1.config_id = 493
L11_1.gadget_id = 70500000
L12_1 = {}
L12_1.x = -85.796
L12_1.y = 50.0
L12_1.z = 640.335
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 0.0
L12_1.y = 195.191
L12_1.z = 0.0
L11_1.rot = L12_1
L11_1.level = 1
L11_1.point_type = 4001001
L12_1 = {}
L12_1.config_id = 494
L12_1.gadget_id = 70500000
L13_1 = {}
L13_1.x = -49.796
L13_1.y = 80.0
L13_1.z = 605.335
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 0.0
L13_1.y = 263.742
L13_1.z = 0.0
L12_1.rot = L13_1
L12_1.level = 1
L12_1.point_type = 4001001
L13_1 = {}
L13_1.config_id = 495
L13_1.gadget_id = 70500000
L14_1 = {}
L14_1.x = -49.796
L14_1.y = 20.0
L14_1.z = 605.335
L13_1.pos = L14_1
L14_1 = {}
L14_1.x = 0.0
L14_1.y = 206.33
L14_1.z = 0.0
L13_1.rot = L14_1
L13_1.level = 1
L13_1.point_type = 4001001
L14_1 = {}
L14_1.config_id = 496
L14_1.gadget_id = 70500000
L15_1 = {}
L15_1.x = -15.796
L15_1.y = 20.0
L15_1.z = 640.335
L14_1.pos = L15_1
L15_1 = {}
L15_1.x = 0.0
L15_1.y = 289.499
L15_1.z = 0.0
L14_1.rot = L15_1
L14_1.level = 1
L14_1.point_type = 4001001
L15_1 = {}
L15_1.config_id = 497
L15_1.gadget_id = 70500000
L16_1 = {}
L16_1.x = -15.796
L16_1.y = 80.0
L16_1.z = 640.335
L15_1.pos = L16_1
L16_1 = {}
L16_1.x = 0.0
L16_1.y = 144.752
L16_1.z = 0.0
L15_1.rot = L16_1
L15_1.level = 1
L15_1.point_type = 4001001
L16_1 = {}
L16_1.config_id = 498
L16_1.gadget_id = 70690006
L17_1 = {}
L17_1.x = -49.796
L17_1.y = 80.0
L17_1.z = 645.335
L16_1.pos = L17_1
L17_1 = {}
L17_1.x = 90.0
L17_1.y = 0.0
L17_1.z = 0.0
L16_1.rot = L17_1
L16_1.level = 1
L17_1 = {}
L17_1.config_id = 499
L17_1.gadget_id = 70690006
L18_1 = {}
L18_1.x = -44.796
L18_1.y = 80.0
L18_1.z = 640.335
L17_1.pos = L18_1
L18_1 = {}
L18_1.x = 90.0
L18_1.y = 90.0
L18_1.z = 0.0
L17_1.rot = L18_1
L17_1.level = 1
L18_1 = {}
L18_1.config_id = 500
L18_1.gadget_id = 70690006
L19_1 = {}
L19_1.x = -49.796
L19_1.y = 80.0
L19_1.z = 635.335
L18_1.pos = L19_1
L19_1 = {}
L19_1.x = 90.0
L19_1.y = 180.0
L19_1.z = 0.0
L18_1.rot = L19_1
L18_1.level = 1
L19_1 = {}
L19_1.config_id = 501
L19_1.gadget_id = 70690006
L20_1 = {}
L20_1.x = -54.796
L20_1.y = 80.0
L20_1.z = 640.335
L19_1.pos = L20_1
L20_1 = {}
L20_1.x = 90.0
L20_1.y = 270.0
L20_1.z = 0.0
L19_1.rot = L20_1
L19_1.level = 1
L20_1 = {}
L20_1.config_id = 502
L20_1.gadget_id = 70690006
L21_1 = {}
L21_1.x = -49.796
L21_1.y = 29.16
L21_1.z = 605.335
L20_1.pos = L21_1
L21_1 = {}
L21_1.x = 0.0
L21_1.y = 202.087
L21_1.z = 0.0
L20_1.rot = L21_1
L20_1.level = 1
L21_1 = {}
L21_1.config_id = 503
L21_1.gadget_id = 70690006
L22_1 = {}
L22_1.x = -49.796
L22_1.y = 50.0
L22_1.z = 605.335
L21_1.pos = L22_1
L22_1 = {}
L22_1.x = 0.0
L22_1.y = 202.087
L22_1.z = 0.0
L21_1.rot = L22_1
L21_1.level = 1
L22_1 = {}
L22_1.config_id = 504
L22_1.gadget_id = 70690006
L23_1 = {}
L23_1.x = -49.796
L23_1.y = 20.0
L23_1.z = 605.335
L22_1.pos = L23_1
L23_1 = {}
L23_1.x = 90.0
L23_1.y = 0.0
L23_1.z = 0.0
L22_1.rot = L23_1
L22_1.level = 1
L23_1 = {}
L23_1.config_id = 505
L23_1.gadget_id = 70690001
L24_1 = {}
L24_1.x = -49.796
L24_1.y = 35.0
L24_1.z = 605.335
L23_1.pos = L24_1
L24_1 = {}
L24_1.x = 90.0
L24_1.y = 252.856
L24_1.z = 0.0
L23_1.rot = L24_1
L23_1.level = 1
L24_1 = {}
L24_1.config_id = 506
L24_1.gadget_id = 70690001
L25_1 = {}
L25_1.x = -49.796
L25_1.y = 50.0
L25_1.z = 605.335
L24_1.pos = L25_1
L25_1 = {}
L25_1.x = 90.0
L25_1.y = 252.856
L25_1.z = 0.0
L24_1.rot = L25_1
L24_1.level = 1
L25_1 = {}
L25_1.config_id = 507
L25_1.gadget_id = 70690001
L26_1 = {}
L26_1.x = -49.796
L26_1.y = 65.0
L26_1.z = 605.335
L25_1.pos = L26_1
L26_1 = {}
L26_1.x = 90.0
L26_1.y = 252.856
L26_1.z = 0.0
L25_1.rot = L26_1
L25_1.level = 1
L26_1 = {}
L26_1.config_id = 508
L26_1.gadget_id = 70900201
L27_1 = {}
L27_1.x = -49.796
L27_1.y = 80.0
L27_1.z = 675.335
L26_1.pos = L27_1
L27_1 = {}
L27_1.x = 0.0
L27_1.y = 343.29
L27_1.z = 0.0
L26_1.rot = L27_1
L26_1.level = 1
L27_1 = {}
L27_1.config_id = 509
L27_1.gadget_id = 70900201
L28_1 = {}
L28_1.x = -49.796
L28_1.y = 65.0
L28_1.z = 675.335
L27_1.pos = L28_1
L28_1 = {}
L28_1.x = 0.0
L28_1.y = 75.791
L28_1.z = 0.0
L27_1.rot = L28_1
L27_1.level = 1
L28_1 = {}
L28_1.config_id = 510
L28_1.gadget_id = 70900201
L29_1 = {}
L29_1.x = -85.796
L29_1.y = 50.0
L29_1.z = 640.335
L28_1.pos = L29_1
L29_1 = {}
L29_1.x = 0.0
L29_1.y = 273.71
L29_1.z = 0.0
L28_1.rot = L29_1
L28_1.level = 1
L29_1 = {}
L29_1.config_id = 511
L29_1.gadget_id = 70900201
L30_1 = {}
L30_1.x = -49.796
L30_1.y = 80.0
L30_1.z = 605.335
L29_1.pos = L30_1
L30_1 = {}
L30_1.x = 0.0
L30_1.y = 8.766
L30_1.z = 0.0
L29_1.rot = L30_1
L29_1.level = 1
L30_1 = {}
L30_1.config_id = 512
L30_1.gadget_id = 70900201
L31_1 = {}
L31_1.x = -49.796
L31_1.y = 20.0
L31_1.z = 605.335
L30_1.pos = L31_1
L31_1 = {}
L31_1.x = 0.0
L31_1.y = 51.509
L31_1.z = 0.0
L30_1.rot = L31_1
L30_1.level = 1
L31_1 = {}
L31_1.config_id = 513
L31_1.gadget_id = 70900201
L32_1 = {}
L32_1.x = -15.796
L32_1.y = 20.0
L32_1.z = 640.335
L31_1.pos = L32_1
L32_1 = {}
L32_1.x = 0.0
L32_1.y = 34.475
L32_1.z = 0.0
L31_1.rot = L32_1
L31_1.level = 1
L32_1 = {}
L32_1.config_id = 514
L32_1.gadget_id = 70900201
L33_1 = {}
L33_1.x = -15.796
L33_1.y = 80.0
L33_1.z = 640.335
L32_1.pos = L33_1
L33_1 = {}
L33_1.x = 0.0
L33_1.y = 343.29
L33_1.z = 0.0
L32_1.rot = L33_1
L32_1.level = 1
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
L1_1[4] = L5_1
L1_1[5] = L6_1
L1_1[6] = L7_1
L1_1[7] = L8_1
L1_1[8] = L9_1
L1_1[9] = L10_1
L1_1[10] = L11_1
L1_1[11] = L12_1
L1_1[12] = L13_1
L1_1[13] = L14_1
L1_1[14] = L15_1
L1_1[15] = L16_1
L1_1[16] = L17_1
L1_1[17] = L18_1
L1_1[18] = L19_1
L1_1[19] = L20_1
L1_1[20] = L21_1
L1_1[21] = L22_1
L1_1[22] = L23_1
L1_1[23] = L24_1
L1_1[24] = L25_1
L1_1[25] = L26_1
L1_1[26] = L27_1
L1_1[27] = L28_1
L1_1[28] = L29_1
L1_1[29] = L30_1
L1_1[30] = L31_1
L1_1[31] = L32_1
gadgets = L1_1
L1_1 = {}
regions = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 1000139
L2_1.name = "GADGET_STATE_CHANGE_139"
L3_1 = EventType
L3_1 = L3_1.EVENT_GADGET_STATE_CHANGE
L2_1.event = L3_1
L2_1.source = ""
L2_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_139"
L2_1.action = "action_EVENT_GADGET_STATE_CHANGE_139"
L3_1 = {}
L3_1.config_id = 1000140
L3_1.name = "GATHER_140"
L4_1 = EventType
L4_1 = L4_1.EVENT_GATHER
L3_1.event = L4_1
L3_1.source = "491"
L3_1.condition = ""
L3_1.action = "action_EVENT_GATHER_140"
L3_1.forbid_guest = false
L4_1 = {}
L4_1.config_id = 1000141
L4_1.name = "GATHER_141"
L5_1 = EventType
L5_1 = L5_1.EVENT_GATHER
L4_1.event = L5_1
L4_1.source = "492"
L4_1.condition = ""
L4_1.action = "action_EVENT_GATHER_141"
L4_1.forbid_guest = false
L5_1 = {}
L5_1.config_id = 1000142
L5_1.name = "GATHER_142"
L6_1 = EventType
L6_1 = L6_1.EVENT_GATHER
L5_1.event = L6_1
L5_1.source = "493"
L5_1.condition = ""
L5_1.action = "action_EVENT_GATHER_142"
L5_1.forbid_guest = false
L6_1 = {}
L6_1.config_id = 1000143
L6_1.name = "GATHER_143"
L7_1 = EventType
L7_1 = L7_1.EVENT_GATHER
L6_1.event = L7_1
L6_1.source = "494"
L6_1.condition = ""
L6_1.action = "action_EVENT_GATHER_143"
L6_1.forbid_guest = false
L7_1 = {}
L7_1.config_id = 1000144
L7_1.name = "GATHER_144"
L8_1 = EventType
L8_1 = L8_1.EVENT_GATHER
L7_1.event = L8_1
L7_1.source = "495"
L7_1.condition = ""
L7_1.action = "action_EVENT_GATHER_144"
L7_1.forbid_guest = false
L8_1 = {}
L8_1.config_id = 1000145
L8_1.name = "GATHER_145"
L9_1 = EventType
L9_1 = L9_1.EVENT_GATHER
L8_1.event = L9_1
L8_1.source = "496"
L8_1.condition = ""
L8_1.action = "action_EVENT_GATHER_145"
L8_1.forbid_guest = false
L9_1 = {}
L9_1.config_id = 1000146
L9_1.name = "GATHER_146"
L10_1 = EventType
L10_1 = L10_1.EVENT_GATHER
L9_1.event = L10_1
L9_1.source = "497"
L9_1.condition = ""
L9_1.action = "action_EVENT_GATHER_146"
L9_1.forbid_guest = false
L10_1 = {}
L10_1.config_id = 1000149
L10_1.name = "VARIABLE_CHANGE_149"
L11_1 = EventType
L11_1 = L11_1.EVENT_VARIABLE_CHANGE
L10_1.event = L11_1
L10_1.source = "num"
L10_1.condition = ""
L10_1.action = "action_EVENT_VARIABLE_CHANGE_149"
L10_1.trigger_count = 7
L10_1.tag = "69"
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
L1_1[4] = L5_1
L1_1[5] = L6_1
L1_1[6] = L7_1
L1_1[7] = L8_1
L1_1[8] = L9_1
L1_1[9] = L10_1
triggers = L1_1
L1_1 = {}
L2_1 = {}
L2_1.configId = 1
L2_1.name = "num"
L2_1.value = 0
L2_1.no_refresh = true
L1_1[1] = L2_1
variables = L1_1
L1_1 = {}
L1_1.suite = 1
L1_1.end_suite = 0
L1_1.rand_suite = true
init_config = L1_1
L1_1 = {}
L2_1 = {}
L3_1 = {}
L2_1.monsters = L3_1
L3_1 = {}
L4_1 = 484
L5_1 = 485
L6_1 = 486
L7_1 = 487
L8_1 = 488
L9_1 = 489
L10_1 = 490
L11_1 = 491
L12_1 = 492
L13_1 = 493
L14_1 = 494
L15_1 = 495
L16_1 = 496
L17_1 = 497
L18_1 = 498
L19_1 = 499
L20_1 = 500
L21_1 = 501
L22_1 = 502
L23_1 = 503
L24_1 = 504
L25_1 = 505
L26_1 = 506
L27_1 = 507
L28_1 = 508
L29_1 = 509
L30_1 = 510
L31_1 = 511
L32_1 = 512
L33_1 = 513
L34_1 = 514
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L3_1[8] = L11_1
L3_1[9] = L12_1
L3_1[10] = L13_1
L3_1[11] = L14_1
L3_1[12] = L15_1
L3_1[13] = L16_1
L3_1[14] = L17_1
L3_1[15] = L18_1
L3_1[16] = L19_1
L3_1[17] = L20_1
L3_1[18] = L21_1
L3_1[19] = L22_1
L3_1[20] = L23_1
L3_1[21] = L24_1
L3_1[22] = L25_1
L3_1[23] = L26_1
L3_1[24] = L27_1
L3_1[25] = L28_1
L3_1[26] = L29_1
L3_1[27] = L30_1
L3_1[28] = L31_1
L3_1[29] = L32_1
L3_1[30] = L33_1
L3_1[31] = L34_1
L2_1.gadgets = L3_1
L3_1 = {}
L2_1.regions = L3_1
L3_1 = {}
L4_1 = "GADGET_STATE_CHANGE_139"
L5_1 = "GATHER_140"
L6_1 = "GATHER_141"
L7_1 = "GATHER_142"
L8_1 = "GATHER_143"
L9_1 = "GATHER_144"
L10_1 = "GATHER_145"
L11_1 = "GATHER_146"
L12_1 = "VARIABLE_CHANGE_149"
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L3_1[8] = L11_1
L3_1[9] = L12_1
L2_1.triggers = L3_1
L2_1.rand_weight = 100
L1_1[1] = L2_1
suites = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2
  L2_2 = A1_2.param2
  if 484 == L2_2 then
    L2_2 = GadgetState
    L2_2 = L2_2.GearStart
    L3_2 = A1_2.param1
    if L2_2 == L3_2 then
      goto lbl_11
    end
  end
  L2_2 = false
  do return L2_2 end
  ::lbl_11::
  L2_2 = true
  return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_139 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2
  L2_2 = ScriptLib
  L2_2 = L2_2.ActiveChallenge
  L3_2 = A0_2
  L4_2 = 0
  L5_2 = 167
  L6_2 = 60
  L7_2 = 3
  L8_2 = 69
  L9_2 = 7
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : active_challenge"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_139 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.KillEntityByConfigId
  L3_2 = A0_2
  L4_2 = {}
  L4_2.config_id = 508
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.ChangeGroupVariableValue
  L3_2 = A0_2
  L4_2 = "num"
  L5_2 = 1
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GATHER_140 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.KillEntityByConfigId
  L3_2 = A0_2
  L4_2 = {}
  L4_2.config_id = 509
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.ChangeGroupVariableValue
  L3_2 = A0_2
  L4_2 = "num"
  L5_2 = 1
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GATHER_141 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.KillEntityByConfigId
  L3_2 = A0_2
  L4_2 = {}
  L4_2.config_id = 510
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.ChangeGroupVariableValue
  L3_2 = A0_2
  L4_2 = "num"
  L5_2 = 1
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GATHER_142 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.KillEntityByConfigId
  L3_2 = A0_2
  L4_2 = {}
  L4_2.config_id = 511
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.ChangeGroupVariableValue
  L3_2 = A0_2
  L4_2 = "num"
  L5_2 = 1
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GATHER_143 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.KillEntityByConfigId
  L3_2 = A0_2
  L4_2 = {}
  L4_2.config_id = 512
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.ChangeGroupVariableValue
  L3_2 = A0_2
  L4_2 = "num"
  L5_2 = 1
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GATHER_144 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.KillEntityByConfigId
  L3_2 = A0_2
  L4_2 = {}
  L4_2.config_id = 513
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.ChangeGroupVariableValue
  L3_2 = A0_2
  L4_2 = "num"
  L5_2 = 1
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GATHER_145 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.KillEntityByConfigId
  L3_2 = A0_2
  L4_2 = {}
  L4_2.config_id = 514
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.ChangeGroupVariableValue
  L3_2 = A0_2
  L4_2 = "num"
  L5_2 = 1
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GATHER_146 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = A1_2.param1
  L3_2 = A1_2.param2
  if L2_2 == L3_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 484
  L5_2 = GadgetState
  L5_2 = L5_2.Default
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_VARIABLE_CHANGE_149 = L1_1
